[#import "/framework/JGP.htm"  as JGP]
<!--
项目   glSystem
作者   fdp
时间   2018/8/8
-->
[@JGP.head "Title"/]
[@JGP.body]
<jgp-div slot="2-1" _row="['8','*']" _aux="true">
    <jgp-div slot="1-1" _col="['*','*','*']" _aux="false" >
        <jgp-query slot="1-1"  _target="grid" _id="query" _auto="false" _page_size="12">
            <jgp-text   _col="8" _placeholder="单位名称" _name="workUnit" ></jgp-text>
            <jgp-btn  _fn="search" _margin="5" _icon="search">搜索</jgp-btn>
        </jgp-query>
        <jgp-btn slot="1-2" _margin="5" _fn="excelPort">导出发票</jgp-btn>
    </jgp-div>

    <jgp-grid  _id="grid" slot="2-1"  _record_tools="[{'icon':'times-rectangle','tip':'删除','fn':'removeInvoice'}]"
               _index="true"></jgp-grid>
</jgp-div>
[/@JGP.body]

[@JGP.foot]
<script>
    //页面渲染完成之后调用,列表初始化
    JGP.$onload(search())
    //手动搜索
    function search() {
        JGP.query('query').searchTo('/glMeeting/invoiceApiController/queryInvoice',function () {
        },function () {
        });
    }

    function excelPort(re) {
        window.location.href = "/glMeeting/reportFormApiController/excelPort"
    }

</script>

[/@JGP.foot]